﻿using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Game.ExtensibleObjects;

namespace Game.Map.Internal
{
    [CollectionDataContract(Namespace = "game", ItemName = "Extension")]
    public class SerializableExtensions : Collection<IRuntimeExtension>
    {
        protected override void InsertItem(int index, IRuntimeExtension item)
        {
            if (!Contains(item))
            {
                base.InsertItem(index, item);
            }
        }
    }
}
